#ifndef Dialog_signin_H
#define Dialog_signin_H

#include <QDialog>
#include <QSqlQuery>

namespace Ui {
class Dialog_signin;
}

class Dialog_signin : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog_signin(QWidget *parent = nullptr);
    ~Dialog_signin();
public slots:

    void on_pbOk_clicked();
    void on_pbCancel_clicked();
    void on_leUserCode_returnPressed();
    void on_lePassword_returnPressed();

protected:

    virtual  void keyPressEvent(QKeyEvent *e);

private slots:
    void on_leUserCode_textChanged(const QString &arg1);

    void on_cbDepartment_currentTextChanged(const QString &arg1);

private:
    Ui::Dialog_signin *ui;
    QSqlQuery * qrm, *qro, *qro_t;
    int errorCount;
    QString defaultDept;

};

#endif // Dialog_signin_H
